|
|
|
|
|
|
|
The most important items to note in Table 18.6 are the transaction-management methods and the UpdateRows method. These methods are unique to the RDC and are not available with the standard Microsoft Jet data control. |
|
|
|
|
|
|
|
|
The RDC offers a set of unique events that are similar to the events supported by the Microsoft Jet data control: Validate, Reposition, and Error. The RDC has an additional event not supported by the Microsoft Jet data control: the QueryCompleted event. This event is fired after the dataset has returned successfully from the remote data source. This event can be used to alert users of the completion of delayed queries because of slow connections or a large dataset size. |
|
|
|
|
|
|
|
|
The events, methods, and properties covered in the previous sections are illustrated in the RDC data-entry project in the next section. |
|
|
|
|
|
|
|
|
Laying Out the RDC Data-Entry Forms |
|
|
|
|
|
|
|
|
In this section, you create a simple data-entry form using the RDC. This form illustrates the use of most of the properties, methods, and events covered in previous sections of this chapter. If you haven't already done so, start Visual Basic 5.0 and select a new, Standard EXE project. |
|
|
|
|
|
|
|
|
Before you begin laying out the data-entry form, be sure to load the RDC by choosing Project | Components. The Components dialog box appears, as shown in Figure 18.4. |
|
|
|
|
|
|
|
|
Figure 18.4.
Loading the RDC. |
|
|
|
|
|
|
|
|
After adding the RDC to the project, create your data-entry form based on Figure 18.5 and Table 18.7. |
|
|
|
|
|